package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Setter
@Getter
/**
 * 对攻略文章进行评论的描述类
 */
@JsonIgnoreProperties("handler")
public class StrategyDetailComment extends BaseDomain{

    private StrategyDetail strategyDetail;//攻略文章

    private Long parentId;//父评论id

    private String content;//评论内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatTime;//评论时间

    private User user;//当前评论用户

    private List<StrategyDetailComment> comments = new ArrayList<>();//所有下级评论


}